package com.lihongrui.cate;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author lihongrui
 * @create 2022-12-05 20:51
 * 登录地址(PC端)： http://localhost:8080/backend/page/login/login.html
 * 登录地址(移动端)：http://localhost:8080/front/page/login.html
 */
@Slf4j
@SpringBootApplication
@ServletComponentScan
//扫描所有Mapper层的接口就可以不打@Mapper注解了
@MapperScan("com.lihongrui.cate.mapper")
@EnableTransactionManagement  //开启对事务的支持 (此注解可以不加)
@EnableCaching
public class CateApplication {
    public static void main(String[] args) {
        SpringApplication.run(CateApplication.class,args);
        log.info("登录地址(PC端)：{}","http://localhost:8080/backend/page/login/login.html");
        log.info("登录地址(移动端)：{}","http://localhost:8080/front/page/login.html");
        log.info("项目启动成功...");
    }
}
